/* File Info 
 * Author:      李佳乐 
 * CreateTime:  2024/1/4 15:29:24 
 * LastEditor:  李佳乐 
 * ModifyTime:  2024/1/4 15:47:16 
 * Description: 模板的完全特化，在这个例子里将模板类specialization的int特化完全重写
*/ 
#ifndef __SPECIALIZATION__
#define __SPECIALIZATION__

#include <iostream>
using namespace std;

template <typename T>
class FullSpecialization
{
private:
    T data;

public:
    FullSpecialization(const T &args) : data(args){};
    void show() { cout << "data: " << data << endl; }
};


// @Description: 模板类的完全特化
template <>
class FullSpecialization<int>
{
private:
    int data;

public:
    FullSpecialization(const int &args) : data(args){};
    void showS() { cout << "FullSpecialization int data: " << data << endl; }
};

#endif